﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace QuanLyDaiLy.Model
{
    [Table(Name="DaiLy")]
    public class CDaiLy
    {
        #region Properties
        [Column(Name = "MaDaiLy", IsPrimaryKey = true)]
        public ulong MaDaiLy { get; set; }

        [Column(Name = "MaLoaiDaiLy")]
        public ulong MaLoaiDaiLy { get; set; }

        [Column(Name = "TenDaiLy")]
        public string TenDaiLy { get; set; }

        [Column(Name = "DienThoai")]
        public string DienThoai { get; set; }

        [Column(Name = "DiaChi")]
        public string DiaChi { get; set; }

        [Column(Name = "MaQuan")]
        public ulong MaQuan { get; set; }

        [Column(Name = "NgayTiepNhan")]
        public DateTime NgayTiepNhan { get; set; }

        [Column(Name = "Email")]
        public string Email { get; set; }

        [Column(Name = "TienNo")]
        public ulong TienNo { get; set; }
        #endregion

        #region Constructor
        public CDaiLy()
        { }

        public CDaiLy(ulong maloaidaily, string tendaily, string diachi, ulong maquan, DateTime ngaytiepnhan, string email, ulong tienno)
        {
            this.MaLoaiDaiLy = maloaidaily;
            this.TenDaiLy = tendaily;
            this.DiaChi = diachi;
            this.MaQuan = maquan;
            this.NgayTiepNhan = ngaytiepnhan;
            this.Email = email;
            this.TienNo = tienno;
        }
        #endregion
    }
}
